package com.caine.order.feign.fallback;

import com.caine.common.entity.R;
import com.caine.order.entity.Goods;
import com.caine.order.feign.IGoodFeignService;
import com.caine.order.vo.OrderVO;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @Author: CaineZhu
 * @Description:
 * @Date: Created in 18:04 2021/1/4
 * @Modified By:
 */
@Component
public class GoodFeignFallbackServiceImpl implements IGoodFeignService {
    @Override
    public BigDecimal getStock(OrderVO vo) {
        return BigDecimal.valueOf(0);
    }

    @Override
    public Goods getGoodsDetail(OrderVO vo) {
        return null;
    }

    @Override
    public R getGoodsList(String goodsName) {
        return null;
    }

    @Override
    public boolean reduceStock(OrderVO vo) {
        throw new RuntimeException("扣减库存失败");
    }
}
